package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.SysAttachments;
import com.sxhalo.fsms.mapper.SysAttachmentsMapper;
import com.sxhalo.fsms.service.ISysAttachmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysAttachmentsServiceImpl implements ISysAttachmentsService {

	@Autowired
	private SysAttachmentsMapper mapper;
	
	@Override
	public Integer insertSelective(SysAttachments record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(SysAttachments record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey(key.toString());
	}

	@Override
	public SysAttachments selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(key.toString());
	}

	@Override
	public List<SysAttachments> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<SysAttachments> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}



}
